package com.ruoyi.web.pojo.request.stock;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.Map;

/**
 * 入库明细对象 storage
 * 
 * @author zq
 * @date 2024-01-06
 */
@ApiModel("入库新增")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class StorageAddReq
{

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String product;

    /** 产品类型 */
    @Excel(name = "产品类型")
    private String type;

    /** 数量 */
    @Excel(name = "数量")
    private Float number;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;


    /** 库存ID */
    @Excel(name = "库存ID")
    @ApiModelProperty("库存ID")
    @NotNull(message = "未查询到库存")
    private String stockId;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;
    /** 创建者 */
    private String createBy;

    /** 备注 */
    private String remark;

    /** 请求参数 */
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Map<String, Object> params;

}
